export interface Operate {
  label: string
  fn: string
  confirm_status?: number
  isolate_status?: number
}

export interface Person {
  id: number
  created_at: string
  name: string                 //姓名
  id_card: string//身份证号
  phone: string        //手机号
  sex: string                    //性别 1男 2女
  age: number                     //年龄
  isolate_reason: string   //人员类型或者隔离原因
  isolate_status: string           //隔离状态：1 隔离中 2解除隔离
  confirm_status: string           //确认状态：1待确认  2已确认  3驳回
  isolate_endtime: string  //隔离结束日期
  mch_name: string          // 小区名称
}

export interface Params {
  keyword?: string
  community?: string
  mch?: string
  community_id?: string
  mch_id?: string,
  confirm_status: string
  page: number
}

export interface PersonDetail {
  created_at?: string
  id?:string
  mch_id?: string  //小区ID
  mch_name?: string  //小区name
  community_id?: string //     //社区ID
  community_name?: string //     //社区name
  subcontractors_id?: string //分包单位ID
  name?: string             //姓名
  sex?: number //			 //性别
  age?: number				 //年龄
  id_card?: string //身份证号
  phone?: string		   //手机号
  address?: string				   //现住址
  isolate_reason?: string        //人员类型或者隔离原因
  isolate_starttime?: string//隔离开始日期
  isolate_endtime?: string  //隔离结束日期
  isolate_status?: string             //隔离状态 1隔离中 2解除隔离
  isolate_status_txt?: string
  grid_name?: string                               //网格员姓名
  grid_phone?: string             //网格员电话
  principal_name?: string             //负责人姓名
  principal_phone?: string             //负责人手机
  police_name?: string            //片警姓名
  police_phone?: string             //片警电话
  township_name?: string             //乡镇干部姓名
  township_phone?: string             //乡镇干部手机
  doctor_name?: string            //社区医生姓名
  doctor_phone?: string             //社区医生手机
  contractor_xian?: string             //包联人-县级
  contractor_xiang?: string             //包联人-乡级
  contractor_cun?: string             //包联人-村级
  confirm_status?: string             //确认状态 1待确认 2已确认 3驳回
  remark?: string            //备注
  dateRange?: string
  person_category?: string
}

export interface InsertPerson {
  mch_id?: string
  community_id?: string
  subcontractors_id?: string
  name?: string
  sex?: string
  phone?: string
  grid_name?: string
  grid_phone?: string
  principal_name?: string             //负责人姓名
  principal_phone?: string             //负责人手机
  age?: string
  id_card?: string
  isolate_reason?: string
  address?: string
  dateRange?: string
  isolate_starttime?: string
  isolate_endtime?: string
  remark?: string
  person_category?: string
  personData?: Member[]
}

export interface Member {
  name?: string
  id_card?: string
  phone?: string
  isolate_reason?: string
  remark?: string
  person_category?: string
  isolate_starttime?: string
  isolate_endtime?: string
  dateRange?: string
}

export interface ReceivePerson {
  isolate_starttime: string
  isolate_endtime: string
  remark: string
}

export interface RejectPerson {
  remark: string
}

export interface ExtendPerson {
  isolate_endtime: string
}

export interface IsolatePerson {
  isolate_endtime: string
  remark: string
}

export interface BatchInsertPerson {
  personData: InsertPerson[]
}
